import java.net.InetAddress;




public class NodeTriple {

	public String nodeID;
	public InetAddress ip;
	public int port;
	
	public boolean equals(Object obj)
    {
        boolean result = false;
        if (obj instanceof NodeTriple)
        {
        	NodeTriple node = (NodeTriple) obj;
            if(node.nodeID != null && this.nodeID != null)
                result = node.nodeID.equals(this.nodeID);
            else
                result = node.nodeID == null && this.nodeID != null;
        }
        return result;
    }
}
